package com.xy.service;

import java.util.List;

import com.xy.entity.News;

public interface NewsService {
	/**
	 * 添加新闻
	 * 
	 * @param news
	 * @return true or false
	 */
	public boolean addNews(News news);

	/**
	 * 删除新闻
	 * 
	 * @param news
	 * @return true or false
	 */
	public boolean deleNews(News news);

	/**
	 * 更新新闻
	 * 
	 * @param news
	 * @return true or false
	 */
	public boolean updateNews(News news);

	/**
	 * 查询新闻
	 * 
	 * @param news
	 * @return list or null
	 */
	public List<News> selectNews(News news);
}
